package com.yanqu.road.server.cmd.player;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.player.PlayerModule;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;
import com.yanqu.road.server.command.Cmd;

@Cmd(code = Protocol.S_TITLE_GET_REWARD, desc = "领取头衔奖励")
public class GetTitleRewardCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		player.sendPacket(Protocol.U_TITLE_GET_REWARD, player.getModule(PlayerModule.class).getTitleReward());
	}

	@Override
	public void sendData(GamePlayer player) {

	}
}
